package com.example.base;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;

import com.example.rzprogram.R;

/**
 * 
 * 作�??: Rose 
 * 业务�?: 
 * 功能说明: 用于基本activity集成，实现一些集成功�? 
 * 编写日期: 2014-12-5
 * 
 */
public class BaseActivity extends Activity{
	private Animation animation;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		requestWindowFeature(Window.FEATURE_NO_TITLE);// 去掉标题�?
		super.onCreate(savedInstanceState);
		initAnimation();
		
	}
	
	private void initAnimation() {
		animation = AnimationUtils.loadAnimation(getApplicationContext(),
				R.anim.shake);
	}
	public void startAnimation(View v) {
		if(animation != null){
			v.startAnimation(animation);
		}
	}
}
